<%= form_for(@order) do |f| %>
  <%= render 'shared/errors.html.erb', :target => @order%>

  <div class="field">
    <%= f.label "Fecha de entrega" %><br />
    <%= f.text_field :delivery_date %>
  </div>
  <div class="field">
    <%= f.label :street %><br />
    <%= f.text_field :street %>
  </div>
  <div class="field">
    <%= f.label :street_number %><br />
    <%= f.text_field :street_number %>
  </div>
  <% unless @order.article.nil? %>
    <div class="field">
      <table>
        <thead>
          <tr>
            <th>
              Articulo
            </th>
            <th>
              Precio Unitario
            </th>
            <th>
              Cantidad
            </th>
            <th>
              Precio Total
            </th>
          </tr>  
        </thead>
        <tbody>
          <tr>
            <td>
              <%# @order.article.name %>
            </td>
            <td>
              $ <%# @order.article.prize %>
            </td>
            <td>
              <input type="text" size="100px" name="cantidad" placeholder="Cantidad"></input>
            </td>
            <td>
              <%# PRECIO TOTAL = PRECIO_ARTICULO * CANTIDAD.VALUE %>
            </td>
          </tr>
        </tbody>
      </table>  
    </div>
<%end%>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
